<template>
  <div class="home">
    <pcindex></pcindex>
  </div>
</template>

<script>
import pcindex from "./common/index.vue";
export default {
  name: "home",
  components: {
    pcindex: pcindex
  },
  data() {
    return {};
  },
  created() {
    this.$axios
      .get("api/test")
      .then(function(response) {
        console.log("测试接口 获取到了user表的所有数据");
        console.log(response.data);
      })
      .catch(function(error) {
        console.log(error);
      });
  }
};
</script>

<style scoped>
.home {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}
</style>
